From 47d69aae461002d2e8d89ab2878c7e7e225b78ff Mon Sep 17 00:00:00 2001 From: Scott Bradford Date: Sat, 9 Apr 2016 21:07:10 -0400 Subject: [PATCH] update to use UTF-16LE encoding; remove now-unnecessary encoding note from xmldoc; updated reference files --- internal_styles.cc | 2 +- reference/igoprimo_poi.upoi | Bin 751 -> 1444 bytes reference/igoprimo_poi~upoi.csv | 15 +++---- reference/igoprimo_poi~upoi.gpx | 75 +++++++++++++------------------- style/igoprimo_poi.style | 2 +- xmldoc/formats/igoprimo_poi.xml | 8 +--- 6 files changed, 39 insertions(+), 63 deletions(-) diff --git a/internal_styles.cc b/internal_styles.cc index dfede78dc..52fc36391 100644 --- a/internal_styles.cc +++ b/internal_styles.cc @@ -750,7 +750,7 @@ static char igoprimo_poi[] = "FIELD_DELIMITER PIPE\n" "RECORD_DELIMITER CR\n" "BADCHARS \"|\n" - "ENCODING UTF-8\n" + "ENCODING UTF-16LE\n" "#\n" "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n" "#\n" diff --git a/reference/igoprimo_poi.upoi b/reference/igoprimo_poi.upoi index 0297c837f517aa75706fee102aa3e31143f75b62..7bfa7363085cdcea2f7c597946351d61efd86286 100644 GIT binary patch literal 1444 zcma)+Ur*aW5XASn65qjZ1*%pgu^s!ZG-<0!1R+4;v2saLP(zIJhZf17o%T0-oCpX< z)yc_u@4T}!J9mE{I@Z`n`(l;dS#4`u*tM-}VoTx!qAR=NZA`qfnI-I*@_R-+v2)gH zyJ2O?+lcvsy$z#hg?-@Z+W}8%LV3@uPqag<$D`5McQE%E`bzUVvT5G+p`DE#l6OX3 zbNdNy&HwAQ9r=pBerLPj?18!KHS~O*kuxJ6(6w*J-Vocaz^yA%JNr}kO_@#Xl1f5F ziJefB)|D|bFRXOt${v{?ICkc`v@>sPNaiK^)eGT7)d!BUM)4o41f7H#nMkX)UXI8# zbnVo~vAy*UZ`PYquR8WrZwi}|r-N$k^>*o_cBsb#98u8)X)|No6Z-@Y>GKQau2D|t z2|MMMTmO~ICd7tBBA?Kkl=n797w)?&az6P&Io6IW2PgK;YnhOD&TdsD_XH;&@)j#t zId14(374+-t|S_Jm*QgiH~SAQa?ANrXGF-+xr$T_b#>0l+*MEwfpeQ@`+gF1l5}2z zF6u{{F5+DKIZFIo3t5@T;l4bx&tApz`>6o6@cSvJK55+LUFR_H{Rhoh B@uUC% literal 751 zcmajd%}#_c6b0bDPvLqJNN;=lx08iBF=~v7ZcUjqKt#qAn1$)XTMDx%jIj$AEWUGk zZ^7T(nbUD}&0u@ayyqlWQZfV&G)Kmi(*9%I?R@y2j1OmT#_ypYoauXeok93Rm_*2Q zJlZGIvoI7-1Lh>~#M6jGdqfp1%h1lvD_ z6EMgbAgA+Qhz4XytB5UQOE*Nf2{K7|Fm<==GnPip#9TVe6ZnOk3#C;;J~p=e?ChaF nKa?}9n4G2oBd7q|fH1b!}F--`vKB0QUjam4fi{WaQOr`z@t diff --git a/reference/igoprimo_poi~upoi.csv b/reference/igoprimo_poi~upoi.csv index 6b665727f..3af994f90 100644 --- a/reference/igoprimo_poi~upoi.csv +++ b/reference/igoprimo_poi~upoi.csv @@ -1,10 +1,7 @@ No,Latitude,Longitude,Name,Address,City,PostalCode,Phone -1,50.877341,12.433889,"3","Hauptstrasse -1",,,"03741-999999" -2,50.964955,12.435919,"Altenburg-Umgehung",,"Plauen",,"03741-999999" -3,50.610795,12.173802,"Elsterberg",,,,"03741-999999" -4,50.844126,12.408757,"Gosel",,,,"03741-999999" -5,50.654763,12.204957,"Greiz",,,"8523","03741-999999" -6,51.314521,12.409143,"HMMMM","Hauptstrasse -2","Plauen","8523","03741-999999" -7,50.493663,12.107153,"Jahnstrasse",,,"8523","03741-999999" -8,50.493837,12.106101,"Liebknechtstrasse",,,"8523","03741-999999" -9,50.492619,12.105449,"NARVA",,,"8523","03741-999999" +1,38.870741,-77.103000,"Cathedral of St Thomas More","Cathedral Ln","Arlington","22203","+(1)-(703)-5251300" +2,38.889742,-77.013587,"Capitol Reflecting Pool",,"District of Columbia",, +3,38.884787,-77.439315,"McDonald's","Brookfield Corporate Dr","Chantilly","20151", +4,38.952749,-77.447755,"Washington Dulles International Airport","Saarinen Cir","Sterling","20166","+(1)-(703)-5722700" +5,38.857596,-77.226819,"Inova Fairfax Medical Campus","Gallows Rd","Fairfax","22031","+(1)-(703)-7764001" +6,38.871771,-77.008025,"Nationals Park","S Capitol St SE","Washington","20003","+(1)-(888)-6326287" diff --git a/reference/igoprimo_poi~upoi.gpx b/reference/igoprimo_poi~upoi.gpx index 0113994e9..1586ef676 100644 --- a/reference/igoprimo_poi~upoi.gpx +++ b/reference/igoprimo_poi~upoi.gpx @@ -1,50 +1,35 @@ - - - 3 - 3 - 3 - - - Altenburg-Umgehung - Altenburg-Umgehung - Altenburg-Umgehung - - - Elsterberg - Elsterberg - Elsterberg - - - Gosel - Gosel - Gosel - - - Greiz - Greiz - Greiz - - - HMMMM - HMMMM - HMMMM - - - Jahnstrasse - Jahnstrasse - Jahnstrasse - - - Liebknechtstrasse - Liebknechtstrasse - Liebknechtstrasse - - - NARVA - NARVA - NARVA + + + Cathedral of St Thomas More + Cathedral of St Thomas More + Cathedral of St Thomas More + + + Capitol Reflecting Pool + Capitol Reflecting Pool + Capitol Reflecting Pool + + + McDonald's + McDonald's + McDonald's + + + Washington Dulles International Airport + Washington Dulles International Airport + Washington Dulles International Airport + + + Inova Fairfax Medical Campus + Inova Fairfax Medical Campus + Inova Fairfax Medical Campus + + + Nationals Park + Nationals Park + Nationals Park diff --git a/style/igoprimo_poi.style b/style/igoprimo_poi.style index abfb9617d..36df8afa8 100644 --- a/style/igoprimo_poi.style +++ b/style/igoprimo_poi.style @@ -13,7 +13,7 @@ DATATYPE WAYPOINT FIELD_DELIMITER PIPE RECORD_DELIMITER CR BADCHARS "| -ENCODING UTF-8 +ENCODING UTF-16LE # # INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE: # diff --git a/xmldoc/formats/igoprimo_poi.xml b/xmldoc/formats/igoprimo_poi.xml index aab18b03c..075721b9b 100644 --- a/xmldoc/formats/igoprimo_poi.xml +++ b/xmldoc/formats/igoprimo_poi.xml @@ -2,10 +2,4 @@ igoprimo_poi supports POI files from iGo Primo 'next generation navigation' devices. iGo Primo is GPS Navigation Software that runs on Windows embedded platforms, and is used in some OEM and aftermarket automotive head units. - - - NOTE: GPSBabel should seamlessly read and convert .upoi files from your device. However, - when converting to .upoi format, GPSBabel will encode as UTF-8, which the device won't read - correctly. You will need to manually convert the output file to UTF-16 LE (UCS-2 LE BOM) - encoding using a text editor, and then it will work as expected. - + \ No newline at end of file -- 2.30.2